package com.perseygroup.apps;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

public class PerseyAppActivity extends Activity {
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu);
        
        //Clic sur l'image EDT
        ImageView imgEdt = (ImageView)findViewById(R.id.ImageView_Edt);
        imgEdt.setOnClickListener(new View.OnClickListener()
        {
        	public void onClick(View arg0) {
        		//Toast.makeText(getApplicationContext(), "Emploi du temps", Toast.LENGTH_SHORT).show();
        		startActivity(new Intent(PerseyAppActivity.this, EDTActivity.class));
        	}
        });
        
        //Clic sur l'image Stages
        ImageView imgStages = (ImageView)findViewById(R.id.ImageView_Stages);
        imgStages.setOnClickListener(new View.OnClickListener()
        {
        	public void onClick(View arg0) {
        		Toast.makeText(getApplicationContext(), "Stages", Toast.LENGTH_SHORT).show();
        	}
        });
        
        //Clic sur l'image Stages
        ImageView imgBonPlans = (ImageView)findViewById(R.id.ImageView_Bonplans);
        imgBonPlans.setOnClickListener(new View.OnClickListener()
        {
        	public void onClick(View arg0) {
        		Toast.makeText(getApplicationContext(), "Bon Plans", Toast.LENGTH_SHORT).show();
        	}
        });
        
        //Clic sur l'image Notifications
        ImageView imgNotifications = (ImageView)findViewById(R.id.ImageView_Notifications);
        imgNotifications.setOnClickListener(new View.OnClickListener()
        {
        	public void onClick(View arg0) {
        		Toast.makeText(getApplicationContext(), "Notifications", Toast.LENGTH_SHORT).show();
        	}
        });
        
        //Clic sur l'image A Propos
        ImageView imgApropos = (ImageView)findViewById(R.id.ImageView_Apropos);
        imgApropos.setOnClickListener(new View.OnClickListener()
        {
        	public void onClick(View arg0) {
        		Toast.makeText(getApplicationContext(), "A Propos", Toast.LENGTH_SHORT).show();
        	}
        });
        
        //Clic sur l'image Aide
        ImageView imgAide = (ImageView)findViewById(R.id.ImageView_Aide);
        imgAide.setOnClickListener(new View.OnClickListener()
        {
        	public void onClick(View arg0) {
        		Toast.makeText(getApplicationContext(), "Aide", Toast.LENGTH_SHORT).show();
        	}
        });
    }
}